package com.bonait.hotapp.entity.vo;

import java.io.Serializable;

public class UpdateVO implements Serializable {

    private static final long serialVersionUID = 1L;
    // 应用大更新地址
    private String appUrl;

    // 应用小更新地址
    private String resUrl;

    // 版本描述
    private String versionDesc;

    // 应用版本
    private String appVersion;

    // 应用资源版本
    private String resVersion;

    // 是否强制更新
    private String isForceUpdate;

    // 是否启用更新
    private Boolean isUpdate;

    public String getAppUrl() {
        return appUrl;
    }

    public void setAppUrl(String appUrl) {
        this.appUrl = appUrl;
    }

    public String getResUrl() {
        return resUrl;
    }

    public void setResUrl(String resUrl) {
        this.resUrl = resUrl;
    }

    public String getVersionDesc() {
        return versionDesc;
    }

    public void setVersionDesc(String versionDesc) {
        this.versionDesc = versionDesc;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getResVersion() {
        return resVersion;
    }

    public void setResVersion(String resVersion) {
        this.resVersion = resVersion;
    }

    public String getIsForceUpdate() {
        return isForceUpdate;
    }

    public void setIsForceUpdate(String isForceUpdate) {
        this.isForceUpdate = isForceUpdate;
    }

    public Boolean getUpdate() {
        return isUpdate;
    }

    public void setUpdate(Boolean update) {
        isUpdate = update;
    }

    public String getResName(){
        String resUrl = this.getResUrl();
        int startIndex = resUrl.lastIndexOf("/");
        return resUrl.substring(startIndex);
    }

    public String getAppName(){
        String appUrl = this.getAppUrl();
        int startIndex = appUrl.lastIndexOf("/");
        return appUrl.substring(startIndex);
    }
}
